package Computer;

public class USBCooler implements USB {
    private String name;
    private int money;

    public USBCooler(String n, int m) {
        this.money = m;
        this.name = n;
    }

    public void show() {
        System.out.println("这是一个电风扇，牌子是" + name + ",价格是" + money + "元！");
    }

    @Override
    public void poweron() {
        System.out.println(name + "接上了电源，准备工作");
    }

    @Override
    public void work() {
        System.out.println("扇叶快速转动，送出凉风！！！");
    }

    @Override
    public void poweroff() {
        System.out.println("断开了电源，停止了工作，扇叶不转动了。。。");
    }

}
